#include"regexpnode.h"
#include<fstream>
#include<iostream>
#include<string>

using namespace std;

ifstream fin1("test.txt");
ifstream fin2("input.txt");
string tempp,tem;

int main(){
	int length=4;
	identifier* a=new identifier [length];
	a[0].begin=0;a[0].end=0;a[0].name="name";
	a[1].begin=0;a[1].end=2;a[1].name="structure";
	a[2].begin=2;a[2].end=2;a[2].name="name";
	a[3].begin=4;a[3].end=4;a[3].name="name";
	string string1="(:structure:|:name:)\\+:name:",string2="a+b+c";
	int start=0,position=0,result=0,end=0;
	node<char> b;
	regexp<char> c(&string2);
	c.init(&string1);
	c.find_next(a,length);
	c.find_next(a,length);
	c.find_next(a,length);
	c.find_next(a,length);
	c.find_next(a,length);
	c.find_next(a,length);
	c.find_next(a,length);
	c.find_next(a,length);
	return 0;
};